package com.example.project3.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName tasks
 */
@TableName(value = "tasks")
@Data
public class Tasks implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     *
     */
    @TableId(value = "task_id", type = IdType.AUTO)
    private Integer taskId;
    /**
     *
     */
    @TableField(value = "project_id")
    private Integer projectId;
    /**
     *
     */
    @TableField(value = "stage_id")
    private Integer stageId;
    /**
     *
     */
    @TableField(value = "name")
    private String name;
    /**
     * 详细描述
     */
    @TableField(value = "des")
    private String des;
    /**
     *
     */
    @TableField(value = "begin_time")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date beginTime;
    /**
     *
     */
    @TableField(value = "end_time")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    /**
     *
     */
    @TableField(value = "priority")
    private Integer priority;
    /**
     *
     */
    @TableField(value = "status")
    private Integer status;
}